/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2024-02-17
 * Time: 18:14
 */
public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.creatTree();
        binaryTree.preOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        //binaryTree.postOrder(root);
        //int temp = binaryTree.getLeafNodeCount(root);
        System.out.println("叶子结点个数  " +
                binaryTree.getLeafNodeCount(root));
    }

}
